package com.xy.common.exception;

/**
 * @author xiaye
 * @create 2020-06-03-19:18
 *
 * 自定义的异常代码和响应返回的消息的枚举类
 */
public enum BizCodeEnume {
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(10001,"格式校验出现异常");

    private int code;
    private String msg;

    BizCodeEnume(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
